package com.jarvis.pzz.common;

import com.jarvis.pzz.models.CityModel;
import com.jarvis.pzz.models.SearchTypeModel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jarvis.liu on 9/16/2017.
 */

public class AppStatus {
    private static List<CityModel> cityList;
    public String cityName;
    private static AppStatus sInstance;

    public static AppStatus getInstance() {

        if (sInstance == null) {
            sInstance = new AppStatus();
        }
        return sInstance;
    }

    public String name = "";
    private List<SearchTypeModel> list = new ArrayList<>();
    public String type;
    public String value;
    public List<SearchTypeModel> getList() {
        return list;
    }

    public static List<CityModel> getCityList() {
        return cityList;
    }

    public static void setCityList(List<CityModel> cityList) {
        AppStatus.cityList = cityList;
    }

    public void setList(List<SearchTypeModel> list) {
        this.list = list;
    }
}
